package com.greensecurity.sim.controller;

import com.greensecurity.sim.entity.PhotoDistinguish;
import com.greensecurity.sim.entity.SystemMessage;
import com.greensecurity.sim.service.PhotoDistinguishService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/photoDis")
@Api(description = "系统消息接口")
public class PhotoDisController {
    @Resource
    private PhotoDistinguishService photoDistinguishService;

    @ApiOperation(value = "获取系统消息")
    @ResponseBody
    @PostMapping("/save")
    public String getSystemMessage(@RequestBody PhotoDistinguish photoDistinguish){
        photoDistinguishService.save(photoDistinguish);
        return "保存成功";
    }
}
